<?php
class Somi_Plugin_ModuleSwitche extends Zend_Controller_Plugin_Abstract
{
public function routeShutdown(Zend_Controller_Request_Abstract $request)
{
Zend_Layout::getMvcInstance()->setLayoutPath(MAINPATH . 'application/modules/' . $request->getModuleName() . '/views/');
Zend_Layout::getMvcInstance()->setLayout('layout/layout');
}
} 

?>